package com.twt.recruit.service;

import com.twt.recruit.entity.CategoryInfo;
import com.twt.recruit.mapper.CategoryInfoMapper;
import com.twt.recruit.mapper.CategoryMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CategoryService {

    @Resource
    CategoryMapper categoryMapper;

    @Resource
    CategoryInfoMapper categoryInfoMapper;

    public void delCategoryByProjectId(Integer projectId) {
        categoryMapper.delCategoryByProjectId(projectId);
    }

    public void delCategoryInfoByCategoryId(List<Integer> categoryList) {
        categoryInfoMapper.delCategoryInfoByCategoryId(categoryList);
    }
}
